home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / util / misc / DragBox.lha / GetBox.txt < prev   
Text File  |  1998-10-25  |  3KB  |  124 lines

  1.  
  2. -GetBox- v1.0 (23.10.98)
  3.  
  4.  
  5. Distribution
  6. ************
  7.  
  8.    Copyright (C) 1998 Juha 'Asa' Pinola
  9.  
  10.    GetBox is available as freeware.  That is, it may be freely distributed
  11. in  unmodified  form  with  no changes what so ever, but you may not charge
  12. more than  a nominal fee covering distribution costs.  However, donations
  13. are welcome.
  14.  
  15.    If  you use this software in a commercial or shareware software product,
  16. please   consider  giving  the  author  and  preferably  each  one  of  the
  17. contributors an original or registered version of your work.
  18.  
  19.    If you wish to distribute this software with a hardware product, contact
  20. the author.  Distribution of GetBox with hardware products is not free.
  21.  
  22.    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
  23. EXPRESS  OR  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  24. WARRANTIES  OF  MERCHANTABILITY  AND  FITNESS  FOR A PARTICULAR PURPOSE ARE
  25. DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
  26. DIRECT,  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  27. (INCLUDING,  BUT  NOT  LIMITED  TO,  PROCUREMENT  OF  SUBSTITUTE  GOODS  OR
  28. SERVICES;  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  29. CAUSED  AND  ON  ANY  THEORY  OF  LIABILITY,  WHETHER  IN  CONTRACT, STRICT
  30. LIABILITY,  OR  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  32. DAMAGE.
  33.  
  34. ****************************************
  35.  
  36.  
  37. Installing
  38. ----------
  39.  
  40. Just copy GetBox to c:GetBox or somewhere else.
  41.  
  42. For faster response insert a line:
  43. "resident c:getbox pure >nil:"    to your s:startup-sequence
  44. or s:user-startup
  45.  
  46.  
  47.  
  48. ****************************************
  49.  
  50.  
  51. The Author
  52. ----------
  53.  
  54.    The author can be reached at the following addresses:
  55.  
  56. Electronic mail
  57.      jpinola@cs.joensuu.fi
  58.  
  59. World-Wide Web
  60.      http://cs.joensuu.fi/~jpinola
  61.  
  62. IRC: Asa/#amigafin/#amycoders
  63.  
  64.  
  65. ****************************************
  66.  
  67.  
  68. Example usage:
  69.  
  70.  
  71. You can change the return format:
  72. `c:detbox.exe format "left %ld top %ld "`   (Only x,y coords)
  73. `c:getbox.exe format "x=%ld y=%ld w=%ld h=%ld"`   (All coords)
  74.  
  75. Or change the environment variable:
  76. `c:getbox.exe env GETBOX_DEFAULTS2`
  77.  
  78.  
  79. ****************************************
  80.  
  81.  
  82. Command line parameters:
  83.  
  84. "X=DEF_X/N,Y=DEF_Y/N,W=DEF_W/N,H=DEF_H/N
  85.  FO=FORMAT/K,ENV/K"
  86.  
  87. X           = Default x
  88. Y           = Default y
  89. W           = Default width
  90. H           = Default height
  91. FORMAT      = Format of return string. %ld for number (x,y,w,h)
  92. ENV         = Set name of the environment variable. (use only names no paths! default: GETBOX_DEFAULT)
  93.  
  94. ****************************************
  95.  
  96.  
  97. Env variable:
  98.  
  99. GETBOX_DEFAULTS = [as command line]
  100.  
  101. Example: ( "setenv GETBOX_DEFAULTS DEF_W 600" )
  102.  
  103. (copy env:GETBOX_DEFAULTS to envarc:)
  104.  
  105.  
  106. ****************************************
  107.  
  108. Notes and bugs:
  109.  
  110. (factory defaults:
  111. "X 0 Y 0 W 200 H 200 FORMAT "%ld/%ld/%ld/%ld" ENV GETBOX_DEFAULT"
  112. )
  113.  
  114.  
  115. ****************************************
  116.  
  117. History:
  118.  
  119. --------------
  120. v 1.0
  121.  
  122. + Released with DragBox
  123.  
  124.